package com.tn.exam.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * ExamPerson entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "exam_person")
public class ExamPerson extends BaseEntity implements java.io.Serializable {

	// Fields

	private Integer personId;
	private Integer personExaminationId;
	private Integer personUserId;

	// Constructors

	/** default constructor */
	public ExamPerson() {
	}

	/** full constructor */
	public ExamPerson(Integer personExaminationId, Integer personUserId) {
		this.personExaminationId = personExaminationId;
		this.personUserId = personUserId;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "person_id", unique = true, nullable = false)
	public Integer getPersonId() {
		return this.personId;
	}

	public void setPersonId(Integer personId) {
		this.personId = personId;
	}

	@Column(name = "person_examination_id", nullable = false)
	public Integer getPersonExaminationId() {
		return this.personExaminationId;
	}

	public void setPersonExaminationId(Integer personExaminationId) {
		this.personExaminationId = personExaminationId;
	}

	@Column(name = "person_user_id", nullable = false)
	public Integer getPersonUserId() {
		return this.personUserId;
	}

	public void setPersonUserId(Integer personUserId) {
		this.personUserId = personUserId;
	}

}